#ifndef TYPEDEF_H
#define TYPEDEF_H

#define DELETE_PTR(x)   \
  {                     \
    if (x != nullptr) { \
      delete x;         \
      x = nullptr;      \
    }                   \
  }

enum class Color : int { RED = 0, YELLO, GREEN };
enum class File_Oper_Src : int {
  SRC_FILE = 0,
  SRC_FILES,
  SRC_DIR,
  SRC_TEXT_CLEAR
};
enum class File_Oper_Target : int { TARGET_DIR = 0, TARGET_TEXT_CLEAR };
enum class File_Oper : int { FILE_COPY = 0, FILE_MOVE, FILE_DELETE };

#endif  // TYPEDEF_H
